package cn.tedu.submarine;

import javax.swing.*;

//侦查潜艇
public class ObserveSubmarine extends SeaObject implements EnemyLife{

    //ObserveSubmarine的构造方法
    public ObserveSubmarine(){
        super(63,19);
    }
    //重写move()移动
    public void move(){
        x+=speed;//x+(向右边移动)
    }
    //重写getImage()获取图片
    public ImageIcon getImage(){
        return Images.obsersubm;
    }
    //重写得分
    public int getLife(){
        return 1;//给一次生命
    }
}
